#include <iostream>
#include "Data.h"

Data *Data::s_instance = NULL;

Data::Data()
{
	m_dataId = 100;
}

Data * Data::getInstance()
{
	if (s_instance == NULL) {
		s_instance = new Data();
	}
	return s_instance;
}

void Data::releaseInstance()
{
	if (s_instance != NULL) {
		delete s_instance;
		s_instance = NULL;
	}
}

Data::~Data()
{

}

void Data::printId()
{
	std::cout << "dataId = " << m_dataId << std::endl;
}
